<?php 
require("dbFunctions.php");

$user = $_POST['user'];
$pass = $_POST['pass'];

$pass = md5($pass);

login($user, $pass);

if(isset($_SESSION['user'])){
	header("location:../home/p/home");
	}else{
	echo("OCORREU UM ERRO - Login nao efetuado");	
		}
?>